# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=lua-resty-jwt
pkgver=0.2.3
pkgrel=0
pkgdesc="JSON Web Token library for OpenResty"
url="https://github.com/cdbattags/lua-resty-jwt"
# ppc64le, riscv64 blocked by luajit -> lua-resty-hmac
arch="noarch !ppc64le !riscv64"
license="BSD2"
depends="lua-resty-hmac"
source="$pkgname-$pkgver.tar.gz::https://github.com/cdbattags/$pkgname/archive/v$pkgver.tar.gz"
options="!check"

package() {
	mkdir -p "$pkgdir/usr/share/lua/common"
	cp -r ./lib/resty "$pkgdir/usr/share/lua/common"
}

sha512sums="
7ec1d69d8097467acdc9bb36c050017d9f3ba84a3db6d84b240f927992b5f67096ed985367920b41d0df4ef1c0891a3ae17b469621cc77fcceed938f4a20b2a1  lua-resty-jwt-0.2.3.tar.gz
"
